import scala.actors._
import scala.actors.Actor._

object MyActor extends Actor{
  def act(){
   loop{
     receive{
       case "exit" => println("exit");exit
       case s:String => println(s)
     }
   }
  }
}

MyActor.start()
MyActor ! "good"
MyActor ! "exit"
